<?php

class Ingenii_DoctrineListener extends Doctrine_EventListener {
		
	public function postConnect(Doctrine_Event $event) {
		$log = Ingenii_Log::getInstance();		
		$message = sprintf("Doctrine: %s (%s) connected", $event->getName(), $event->getCode());
		$log->debug($message);
	}	
	
	/**public function postStmtExecute(Doctrine_Event $event) {
		$log = Ingenii_Log::getInstance();		
		$message = sprintf("Doctrine: %s (%s) -> %s", $event->getName(), $event->getCode(), $event->getQuery());
		$log->debug($message);
	}**/
}